
var footer = {
  toyiji: function(index) {
    if (index == 1) {
      wx.redirectTo({
        url: '/pages/index/index'
      })
    } else if (index == 2) {
      wx.redirectTo({
        url: '/pages/wenjian/wenjian'
      })
    } else if (index == 3) {
      wx.redirectTo({
        url: '/pages/mine/mine'
      })
    }
  }
}
//导出，供外部使用
export default footer